package com.site.blog.my.core.service;

import com.site.blog.my.core.entity.AdminUser;
import com.site.blog.my.core.entity.BlogFriends;
import com.site.blog.my.core.util.PageQueryUtil;
import com.site.blog.my.core.util.PageResult;

public interface AdminUserService {

    AdminUser login(String userName, String password);

    /**
     * 获取用户信息
     *
     * @param loginUserId
     * @return
     */
    AdminUser getUserDetailById(Integer loginUserId);

    /**
     * 修改当前登录用户的密码
     *
     * @param loginUserId
     * @param originalPassword
     * @param newPassword
     * @return
     */
    Boolean updatePassword(Integer loginUserId, String originalPassword, String newPassword);

    /**
     * 修改当前登录用户的名称信息
     *
     * @param loginUserId
     * @param loginUserName
     * @param nickName
     * @return
     */
    Boolean updateName(Integer loginUserId, String loginUserName, String nickName);

    AdminUser register(String userName, String password);

    PageResult list(PageQueryUtil pageUtil);

    boolean deleteBatch(Integer[] ids);

    Boolean saveBlogFriends(BlogFriends blogFriends);

    PageResult getBlogFriendsPage(PageQueryUtil pageUtil);

    boolean deleteBlogFriends(Integer[] ids);
}
